/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package NLP;

import edu.stanford.nlp.pipeline.StanfordCoreNLP;
import java.util.Properties;

/**
 *
 * @author mirko
 */
public class StanfordPipeline {
    
    
    public static StanfordCoreNLP instance;
    
    public static StanfordCoreNLP getInstance(){
        
        if (instance==null){
            Properties props = new Properties();
	    props.put("annotators", "tokenize, ssplit, pos, lemma, parse, ner, dcoref"); //removed property ner (named entity recognizer) and dcoref
	    instance  = new StanfordCoreNLP(props);
            
         
            
        }
        return instance;
        
        
    }
    
}
